<?php

namespace app\api\controller;

use app\common\model\MemberRank;
use app\common\model\Member;
use app\common\model\MemberTips;
use app\common\model\MemberInfo;

class Test extends Controller
{
	public function rate()
	{
		//$res = MemberRank::getRank(5);
		//$res = Member::getMember(67);
		//$res = MemberTips::getOrderTips(67);
		/*$post = [
			'change' => 20,
			'details' => '返佣金',
		];
		$res = MemberInfo::incrMoney(666666, $post);
		print_r($res);*/
		/*$post = [
			'change' => 20,
			'details' => '扣佣金',
			'type' => 'norder',
		];
		$res = MemberInfo::decrMoney(666666, $post);
		print_r($res);*/
		//MemberTips::caclTips(['id' =>7]);
		MemberTips::caclTips(['id' =>7], ['id' => 7]);

	}
}